TTL NAND gate and NOR gate circuits